package com.mew.lobby.message.request;

import com.zebra.common.ZebraBaseMessage;
import io.netty.buffer.ByteBuf;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @Author King.Song
 * @Date 2020/12/4 0004
 **/
@Data
@ToString
@NoArgsConstructor
public class LoadRoomRequestMessage extends ZebraBaseMessage<LoadRoomRequestMessage> {

    private int gameId;

    @Override
    public void write(ByteBuf byteBuf) {

    }

    @Override
    public LoadRoomRequestMessage read(ByteBuf byteBuf) {
        LoadRoomRequestMessage message = new LoadRoomRequestMessage();
        message.gameId = readInt(byteBuf);
        return message;
    }
}
